package com.example.demo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 *@Description 登录入参
 *@Author Levi
 *@Date 2019/4/23-14:00
*/
@Data
@ApiModel(value = "登录入参", description = "登录入参")
public class LoginParam extends BaseParam {

    @NotNull(message = "账号不能为空")
    @ApiModelProperty(value = "账号", name = "username", required = true, example = "admin")
    private String username;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码", name = "password", required = true, example = "admin")
    private String password;
}
